﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AGrandVenture
{
    public static class DiceRoll
    {
        static Random random = new Random();

        public static int D2
        {
            get { return rollD2(); }
        }

        public static int D3
        {
            get { return rollD3(); }
        }

        public static int D4
        {
            get { return rollD4(); }   
        }

        public static int D6
        {
            get { return rollD6(); }
        }

        public static int D8
        {
            get { return rollD8(); }
        }

        public static int D10
        {
            get { return rolld10(); }
        }

        public static int D12
        {
            get { return rollD12(); }
        }

        public static int D20
        {
            get { return rollD20(); }
        }

        public static int D100
        {
            get { return rollD100(); }
        }

        private static int rollD2()
        {
            int roll = random.Next(1, 3);
            return roll;
        }

        private static int rollD3()
        {
            int roll = random.Next(1, 4);
            return roll;
        }

        private static int rollD4()
        {
            int roll = random.Next(1, 5);
            return roll;
        }

        private static int rollD6()
        {
            int roll = random.Next(1, 7);
            return roll;
        }

        private static int rollD8()
        {
            int roll = random.Next(1, 9);
            return roll;
        }

        private static int rolld10()
        {
            int roll = random.Next(1, 11);
            return roll;
        }

        private static int rollD12()
        {
            int roll = random.Next(1, 13);
            return roll;
        }

        private static int rollD20()
        {
            int roll = random.Next(1, 21);
            return roll;
        }

        private static int rollD100()
        {
            int roll = random.Next(1, 101);
            return roll;
        }
    }
}
